/**
 * 进入有预案调度
 */
function setEventPlan2Session(){	
	var timestamp = Date.parse(new Date());
	//alert(getCookie(eventId));
	$.get("do/processStart_processEventStartByPlan.action?ts="+timestamp+"&eventId="+getCookie(eventId),null,setEventPlan2SessionRst);
}
/**
 * 转向瑞童页面
 * @param {Object} data
 */
function setEventPlan2SessionRst(data){
	if(data.result=="success"){
		//window.parent.location.href="zrt/loadPlanStep.action";
		//window.parent.parent.parent.location.replace("/ag/zrt/loadPlanStep.action");
		//window.parent.parent.parent.location.replace("/ag/zrt/loadPlanStep.action");
		//$('#tabFrame', window.parent.document).attr("src", "/ag/zrt/loadPlanStep.action");
		$('#tabFrame', window.parent.document).attr("src", "/ag/zhh/index.jsp");
	}else{
		alert("对不起，当前事件不处于指挥调度状态！");
	}
}

/**
 * 进入无预案调度
 */
function setEventPlan2SessionNoPlan(){	
	var timestamp = Date.parse(new Date());
	//alert(getCookie(eventId));
	$.get("do/processStart_processEventStart.action?ts="+timestamp+"&eventId="+getCookie(eventId),null,setEventPlan2SessionNoPlanRst);
}
/**
 * 转向瑞童页面
 * @param {Object} data
 */
function setEventPlan2SessionNoPlanRst(data){
	if(data.result=="success"){
		//window.parent.parent.location.href="/ag/zhh/index.jsp";
		//$('#tabFrame', window.parent.parent.document).attr("src", "/ag/zhh/index.jsp");
		$('#tabFrame', window.parent.document).attr("src", "/ag/zhh/index.jsp");
	}else{
		alert("对不起，当前事件不处于指挥调度状态！");
	}
}